Print second maximum element in an array

join shbcf.ru